Multimedia Applications¶
Function Introduction¶
The Debian Weston desktop environment provides multimedia playback capabilities and supports audio and video playback through the GStreamer multimedia framework.
The system integrates Qualcomm hardware codec components. The qtic2vdec plugin can be used to access hardware video decoding capabilities, enabling hardware-accelerated playback of video formats such as H.264.
Prepare the Video File¶
Copy the test video file to the development board:
adb push test_qti_h264.mp4 /data/
Configure the Weston Environment¶
Since GStreamer uses Wayland for video output, configure the Wayland environment variables corresponding to Weston:
export XDG_RUNTIME_DIR=/run/user/root
export WAYLAND_DISPLAY=wayland-1
GStreamer Hardware-Decoded Playback¶
Use the Qualcomm qtic2vdec plugin to hardware-decode the H.264 video and output it to the Weston desktop through waylandsink:
gst-launch-1.0 -e filesrc location=/data/test_qti_h264.mp4 ! qtdemux ! queue ! h264parse ! qtic2vdec ! videoconvert ! waylandsink
Note: test_qti_h264.mp4 is the test video file used in this document. In actual use, modify the value after location= according to the video file name on the development board. For example, if the video file is /data/test.mp4, configure it as location=/data/test.mp4.